package vp.remedies.dr.home.allmain.remedy.activity;

import vp.remedies.dr.home.R;
import vp.remedies.dr.home.utils.Constantce;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class HighBloodPressureActivity extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.high_blood_pressure);
		setView(Constantce.LANGUAGE_ENGLISH);
	}

	void setView(String language) {
		TextView headerTxt = (TextView) findViewById(R.id.hearderTxt);
		TextView detail1Txt = (TextView) findViewById(R.id.detail1Txt);
		TextView detail2Txt = (TextView) findViewById(R.id.detail2Txt);
		TextView detail3Txt = (TextView) findViewById(R.id.detail3Txt);
		TextView detail4Txt = (TextView) findViewById(R.id.detail4Txt);
		TextView detail5Txt = (TextView) findViewById(R.id.detail5Txt);
		TextView detail6Txt = (TextView) findViewById(R.id.detail6Txt);
		TextView detail7Txt = (TextView) findViewById(R.id.detail7Txt);
		TextView detail8Txt = (TextView) findViewById(R.id.detail8Txt);
		TextView detail9Txt = (TextView) findViewById(R.id.detail9Txt);
		TextView detail10Txt = (TextView) findViewById(R.id.detail10Txt);
		TextView detail11Txt = (TextView) findViewById(R.id.detail11Txt);
		TextView detail12Txt = (TextView) findViewById(R.id.detail12Txt);
		TextView detail13Txt = (TextView) findViewById(R.id.detail13Txt);
		TextView detail14Txt = (TextView) findViewById(R.id.detail14Txt);

		String headerTxtString = null;
		String high_blood_pressure_1 = null;
		String high_blood_pressure_2 = null;
		String high_blood_pressure_3 = null;
		String high_blood_pressure_4 = null;
		String high_blood_pressure_5 = null;
		String high_blood_pressure_6 = null;
		String high_blood_pressure_7 = null;
		String high_blood_pressure_8 = null;
		String high_blood_pressure_9 = null;
		String high_blood_pressure_10 = null;
		String high_blood_pressure_11 = null;
		String high_blood_pressure_12 = null;
		String high_blood_pressure_13 = null;
		String high_blood_pressure_14 = null;

		if (language.equals(Constantce.LANGUAGE_HINDI)) {
			headerTxtString = getResources().getString(
					R.string.high_blood_pressure_header_hi);
			high_blood_pressure_1 = getResources().getString(
					R.string.high_blood_pressure_1_hi);
			high_blood_pressure_2 = getResources().getString(
					R.string.high_blood_pressure_2_hi);
			high_blood_pressure_3 = getResources().getString(
					R.string.high_blood_pressure_3_hi);
			high_blood_pressure_4 = getResources().getString(
					R.string.high_blood_pressure_4_hi);
			high_blood_pressure_5 = getResources().getString(
					R.string.high_blood_pressure_5_hi);
			high_blood_pressure_6 = getResources().getString(
					R.string.high_blood_pressure_6_hi);
			high_blood_pressure_7 = getResources().getString(
					R.string.high_blood_pressure_7_hi);
			high_blood_pressure_8 = getResources().getString(
					R.string.high_blood_pressure_8_hi);
			high_blood_pressure_9 = getResources().getString(
					R.string.high_blood_pressure_9_hi);
			high_blood_pressure_10 = getResources().getString(
					R.string.high_blood_pressure_10_hi);
			high_blood_pressure_11 = getResources().getString(
					R.string.high_blood_pressure_11_hi);
			high_blood_pressure_12 = getResources().getString(
					R.string.high_blood_pressure_12_hi);
			high_blood_pressure_13 = getResources().getString(
					R.string.high_blood_pressure_13_hi);
			high_blood_pressure_14 = getResources().getString(
					R.string.high_blood_pressure_14_hi);
		} else {
			headerTxtString = getResources().getString(
					R.string.high_blood_pressure_header_en);
			high_blood_pressure_1 = getResources().getString(
					R.string.high_blood_pressure_1_en);
			high_blood_pressure_2 = getResources().getString(
					R.string.high_blood_pressure_2_en);
			high_blood_pressure_3 = getResources().getString(
					R.string.high_blood_pressure_3_en);
			high_blood_pressure_4 = getResources().getString(
					R.string.high_blood_pressure_4_en);
			high_blood_pressure_5 = getResources().getString(
					R.string.high_blood_pressure_5_en);
			high_blood_pressure_6 = getResources().getString(
					R.string.high_blood_pressure_6_en);
			high_blood_pressure_7 = getResources().getString(
					R.string.high_blood_pressure_7_en);
			high_blood_pressure_8 = getResources().getString(
					R.string.high_blood_pressure_8_en);
			high_blood_pressure_9 = getResources().getString(
					R.string.high_blood_pressure_9_en);
			high_blood_pressure_10 = getResources().getString(
					R.string.high_blood_pressure_10_en);
			high_blood_pressure_11 = getResources().getString(
					R.string.high_blood_pressure_11_en);
			high_blood_pressure_12 = getResources().getString(
					R.string.high_blood_pressure_12_en);
			high_blood_pressure_13 = getResources().getString(
					R.string.high_blood_pressure_13_en);
			high_blood_pressure_14 = getResources().getString(
					R.string.high_blood_pressure_14_en);
		}
		headerTxt.setText(headerTxtString);
		detail1Txt.setText(high_blood_pressure_1);
		detail2Txt.setText(high_blood_pressure_2);
		detail3Txt.setText(high_blood_pressure_3);
		detail4Txt.setText(high_blood_pressure_4);
		detail5Txt.setText(high_blood_pressure_5);
		detail6Txt.setText(high_blood_pressure_6);
		detail7Txt.setText(high_blood_pressure_7);
		detail8Txt.setText(high_blood_pressure_8);
		detail9Txt.setText(high_blood_pressure_9);
		detail10Txt.setText(high_blood_pressure_10);
		detail11Txt.setText(high_blood_pressure_11);
		detail12Txt.setText(high_blood_pressure_12);
		detail13Txt.setText(high_blood_pressure_13);
		detail14Txt.setText(high_blood_pressure_14);

	}
}